from rest_framework.permissions import IsAuthenticated
from rest_framework.generics import CreateAPIView
from .models import Order
from .serializers import OrderModelSerializer


class OrderAPIView(CreateAPIView):
    """订单信息"""
    queryset = Order.objects.all()
    serializer_class = OrderModelSerializer
    permission_classes = [IsAuthenticated]
